Skip to content

Conversation

@alessfg
Copy link
Member

@alessfg alessfg commented Mar 24, 2025

Proposed changes

Add a parameter, nginx_distribution_package, to override the default NGINX package name when installing NGINX from your distribution/OS repository. Supersedes #857.

Checklist

Before creating a PR, run through this checklist and mark each as complete:

Copilot AI review requested due to automatic review settings March 24, 2025 14:52
@github-actions github-actions bot added the enhancement Enhance/improve an existing feature label Mar 24, 2025
@alessfg alessfg self-assigned this Mar 24, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a parameter to allow overriding the default distribution package name for installing NGINX from the OS repository.

  • Introduces a pre-task in Molecule to set the package name for Alpine systems.
  • Updates defaults documentation and changelog to reflect the new parameter.
  • Adjusts the installation task to use the new parameter for package naming.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
molecule/distribution/converge.yml Adds pre-task that sets the package name for Alpine but uses inconsistent variable names.
defaults/main/main.yml Updates comments to document the new parameter for distribution package.
tasks/opensource/install-distribution.yml Modifies the installation task to use the new parameter for package naming.
CHANGELOG.md Adds an entry describing the new parameter feature.
Comments suppressed due to low confidence (2)

molecule/distribution/converge.yml:7

  • [nitpick] Consider renaming 'nginx_package_name' to 'nginx_distribution_package' to maintain consistency with the parameter name used in the defaults and installation tasks.
nginx_package_name: "@nginx:1.24/common"

molecule/distribution/converge.yml:15

  • [nitpick] Replace 'nginx_distribution_name' with 'nginx_distribution_package' so that the variable name aligns with the new parameter and documentation.
nginx_distribution_name: "{{ nginx_package_name }}"

@alessfg alessfg enabled auto-merge March 24, 2025 15:20
@alessfg alessfg added this pull request to the merge queue Mar 24, 2025
Merged via the queue into main with commit 0cb89b4 Mar 24, 2025
20 checks passed
@alessfg alessfg deleted the fix-distribution branch March 24, 2025 21:13
@github-project-automation github-project-automation bot moved this from In progress to Done in NGINX Ansible roles & collection Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhance/improve an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants